package yl.hs.bmipfull.pojo.material;

import yl.hs.bmipfull.pojo.BaseEntity;
import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;

import java.math.BigDecimal;

import java.util.Date;

/**
 * @apiNote  仓库盘存实体类
 * @since 2022年05月09日 15时00分30秒
 * @author 谢东
 */
@DBTable(disName = "仓库盘存", mapCode = "raw_material_take_inventory")
public class RawMaterialTakeInventoryEntity extends BaseEntity{

        /**
         * 主键
         */
        @Nullable
        private Long id;
        /**
         * 盘点编号
         */
        @DBField(disName = "仓库盘存编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "")
        private String sn;
        /**
         * 仓库名称
         */
        private String wareHouseName;
        /**
         * 原材编号
         */
        private String rmSN;
        /**
         * 原材种类
         */
        private String rmCate;
        /**
         * 原材名称
         */
        private String rmName;
        /**
         * 原材规格
         */
        private String rmSpec;
        /**
         * 账面数量
         */
        private BigDecimal bookQuantity;
        /**
         * 盘存数量
         */
        private BigDecimal inventoryQuantity;
        /**
         * 误差数量
         */
        private BigDecimal errorQuantity;
        /**
         * 校验时间
         */
        private Date inspectionTime;
        /**
         * 校验人
         */
        private String userSN;
        /**
         * 校验人名
         */
        private String userName;
        /**
         * 备注
         */
        private String remark;

        /**
         * 状态
         */
        private short state;

        /**
         * 仓库对应编号
         */
        private String inventorySN;

        public String getInventorySN() {
                return inventorySN;
        }

        public void setInventorySN(String inventorySN) {
                this.inventorySN = inventorySN;
        }

        public  void setId(Long id){
                this.id = id;
        }

        public Long getId(){
                return this.id;
        }
        public  void setSn(String sn){
                this.sn = sn;
        }

        public String getSn(){
                return this.sn;
        }
        public  void setWareHouseName(String wareHouseName){
                this.wareHouseName = wareHouseName;
        }

        public String getWareHouseName(){
                return this.wareHouseName;
        }
        public  void setRmSN(String rmSN){
                this.rmSN = rmSN;
        }

        public String getRmSN(){
                return this.rmSN;
        }
        public  void setRmCate(String rmCate){
                this.rmCate = rmCate;
        }

        public String getRmCate(){
                return this.rmCate;
        }
        public  void setRmName(String rmName){
                this.rmName = rmName;
        }

        public String getRmName(){
                return this.rmName;
        }
        public  void setRmSpec(String rmSpec){
                this.rmSpec = rmSpec;
        }

        public String getRmSpec(){
                return this.rmSpec;
        }
        public  void setBookQuantity(BigDecimal bookQuantity){
                this.bookQuantity = bookQuantity;
        }

        public BigDecimal getBookQuantity(){
                return this.bookQuantity;
        }
        public  void setInventoryQuantity(BigDecimal inventoryQuantity){
                this.inventoryQuantity = inventoryQuantity;
        }

        public BigDecimal getInventoryQuantity(){
                return this.inventoryQuantity;
        }
        public  void setErrorQuantity(BigDecimal errorQuantity){
                this.errorQuantity = errorQuantity;
        }

        public BigDecimal getErrorQuantity(){
                return this.errorQuantity;
        }
        public  void setInspectionTime(Date inspectionTime){
                this.inspectionTime = inspectionTime;
        }

        public Date getInspectionTime(){
                return this.inspectionTime;
        }
        public  void setUserSN(String userSN){
                this.userSN = userSN;
        }

        public String getUserSN(){
                return this.userSN;
        }
        public  void setUserName(String userName){
                this.userName = userName;
        }

        public String getUserName(){
                return this.userName;
        }
        public  void setRemark(String remark){
                this.remark = remark;
        }

        public String getRemark(){
                return this.remark;
        }

        public short getState() {
                return state;
        }

        public void setState(short state) {
                this.state = state;
        }
}